<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * 服务类型接口
 * Class Service
 * @package app\api\controller
 */
class ServiceType extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function getServiceTypeList()
    {
        $result = null;
        $list = model('\app\admin\model\jy\ServiceType')
            ->where('is_del = 0 and `status` != "0"')
            ->order('status desc, weigh desc, update_time desc')
            ->select();
        $this->success('', $list);
    }
}